/**
 * Created by ly on 2017/3/9.
 */
import fs from "fs";
import winston from "winston";

if (!fs.existsSync("logs")) {
    fs.mkdirSync("logs");
}

module.exports = new winston.Logger({
    transports: [
        new winston.transports.File({
            level: "info",
            filename: "logs/app.log",
            maxsize: 10000000,
            maxFiles: 10,
            colorize: false
        })
    ]
});
